-- Title 称号/徽章

local string_find = string.find
local string_split = string.split

local fileName = string.getModeName(...)
local ClassRef = class(fileName)

function ClassRef:ctor(data)
    if data then
        self:init(data)
    end
end

-- data = conf
function ClassRef:init(data)
	self.conf = data
end

function ClassRef:getId()
	return tonumber( self.conf.ID )
end

function ClassRef:getName()
	return self.conf.name
end

function ClassRef:getDesc()
	return self.conf.string
end

function ClassRef:getIcon()
	return self.conf.Icon
end

function ClassRef:getQuality()
	return tonumber( self.conf.lv )
end

-- UI显示顺序
function ClassRef:getSort()
	return tonumber( self.conf.sort )
end

-- 前置徽章ID
function ClassRef:getPreBadgeId()
	return self.conf.postbadge
end

-- 归属系统
function ClassRef:getType()
	return self.conf.type
end

-- 技能增强
function ClassRef:getClassSkill()
	return self.conf.classSkill
end

-- 成就前提
function ClassRef:achievementIDs()
	return self.conf.achievementIDs
end

return ClassRef
